-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added port validation #12233
Added port validation #12233
Conversation
Hi @kadern0. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can one of the admins verify this patch? |
0777f14
to
e19c734
Compare
Thanks for the validation @kadern0, it looks good! If I could ask you to do one more thing, if you wouldn't mind writing a test for this validation in If you call minikube/cmd/minikube/cmd/start_flags.go Line 252 in a70bdb5
start_test.go that do this exact same thing if you're looking for an example.
Thanks! |
@spowelljr thanks for the feedback! |
how about adding a unit test in start_test.go
|
@medyagh so the plan is: refactoring the function so it returns error and then create a unit test for it, right? |
Yes please . Thank you for your helpful prs |
@medyagh I've made the changes as suggested but now it seems the cyclomatic complexity of the function |
Maybe these could be made functions in order to reduce the complexity of https://github.com/kubernetes/minikube/blob/c3c4d0455dfed89650fdf54f9f70d551912b4969/cmd/minikube/cmd/start.go#L1090:L1099 What do you think? |
@medyagh , @spowelljr I think this PR is ready for another review :) |
@kadern0 The code looks good! One last thing, could you run |
ec2d479
to
4e1bcc0
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadern0, spowelljr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #10495
Tests: